package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 物业收费项目类型表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("property_type")
@Schema(description = "物业收费项目类型")
public class PropertyType implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 类型主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "类型主键")
    private Integer id;

    /** 类型名称 */
    @TableField("name")
    @Schema(description = "类型名称")
    private String name;

    /** 计费单价 */
    @TableField("price")
    @Schema(description = "计费单价")
    private BigDecimal price;

    /** 计费单位 */
    @TableField("unit")
    @Schema(description = "计费单位")
    private String unit;

    /** 备注 */
    @TableField("remarks")
    @Schema(description = "备注")
    private String remarks;
}
